/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.composer {
  .indexnav {
    height: 63px;
    background-color: $second-highlight;
    z-index: 10000;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.20);

    .navcontent {
      font-size: 0.9rem;
      display: flex;
      height: 100%;

      .navlogo {
        min-width: 19rem;
        max-width: 19rem;
        background-color: $first-highlight;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        display: flex;
        align-items: center;
        position: relative;
        flex: 1;
        p {
            min-width: 2rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
      }

      .navlogo:hover .tooltiptext {
        visibility: visible;
        opacity: 0.8;
      }

      .navlogo .tooltiptext {
        visibility: hidden;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 12px 12px;
        border-radius: 6px;
        position: absolute;
        left: 5rem;
        top : 3rem;
      }

      .navlogo .tooltiptext::after {
        content: " ";
        position: absolute;
        bottom: 100%;
        left: 10%;
        margin-left: -8px;
        border-width: 8px;
        border-style: solid;
        border-color: transparent transparent black transparent;
      }

      .navmain {
        display: flex;
        justify-content: space-between;
        flex: 1;

        &.rightonly {
          justify-content: flex-end;
        }

        .navleft {
          margin-left: 2rem;
        }

        .navright {
          justify-content: flex-end;
          margin-right: 2rem;
        }
      }

      .drop-select{
            display: flex;
            align-items: center;
            max-width: 18rem;
            color:$third-highlight;
            background-color: $second-highlight;
            border-bottom:  6px solid $first-highlight;

            &.dropListActive {
                border-bottom:  6px solid $white;
            }

            &.active, &:active, &:hover {
                border-bottom:  6px solid $white;
            }

            .action{
                color:$third-highlight;
            }

            .dropdown-toggle{
                padding-top: 0.3rem;
            }

            .dropdown-item{
                min-height: 61px;
            }

            .drop-select-item{
                order: 1;
                max-width: 18rem;

                #content {
                    color: $primary-text;

                    &:hover {
                        background:$fourth-highlight;
                        color:$sixth-highlight;
                    }
                }

                #footer {
                    color:$white-2;
                    background-color: $second-highlight;
                    border-bottom-right-radius: 5px;
                    border-bottom-left-radius: 5px;

                    &:hover {
                        background-color: $sixth-highlight;
                    }
                }
            }

            .dropdown {
                display: flex;
                background-color: $first-highlight;
                max-width: 18rem;
                min-height: 63px;
                background-color: $first-highlight;
                max-width: 18rem;
                min-height: 63px;
                padding-top: 6px;
            }

            .dropdown-menu {
                border-left: transparent;
                border-right: transparent;
                border-bottom: transparent;
                max-width: 18rem;
                border-top: transparent;
                border-top-right-radius: 5px;
                border-top-left-radius: 5px;
                overflow-x: visible;
                overflow-y: visible;

                top : 4.5rem;
                max-width: 18rem;

                &:before{
                    content:"";
                    position: absolute;
                    right: 3rem;
                    top: -0.5rem;
                    width: 0;
                    height: 0;
                    border-style: solid;
                    border-width: 0 0.5rem 0.5rem 0.5rem;
                    border-color: transparent transparent $third-highlight transparent;
                    z-index:9999;
                }

                &:after{
                    content:"";
                    position: absolute;
                    right: 3rem;
                    top: -0.5rem;
                    width: 0;
                    height: 0;
                    border-style: solid;
                    border-width: 0 0.5rem 0.5rem 0.5rem;
                    border-color: transparent transparent $third-highlight transparent;
                    z-index:9999;
                }
            }

            .dropdown-toggle::after{
                color: $third-highlight;
                content: url();
            }
        }

      .links {
        display: flex;

        svg.nav-icon {
          vertical-align: middle;
        }

        li {
          display: flex;
          height: 63px;
          line-height: 63px;

          &.withseparator::after {
            content: '';
            border-right: 2px solid $sixth-highlight;
            margin: $space-medium 0;
          }
        }

        a {
          margin-left: 1rem;
          margin-right: 1rem;
          vertical-align: middle;
          color: $white;
          text-decoration: none;
          border: 1px solid transparent;
          border-bottom: 3px solid transparent;

          svg {
            margin-right: $space-small;
          }

          &:hover {
            text-decoration: underline;
          }
        }

        .action {
          margin-left: 1rem;
          margin-right: 1rem;
          line-height: 63px;
          color: $white;
          transition: none;
          border-bottom: 3px solid transparent;

          &:hover {
            box-shadow: inset 0px -3px 0px $white;
            border-bottom: 0px;
            border-radius: 0px;
          }

          &.active {
            box-shadow: inset 0px -3px 0px $white;
            border-bottom: 0px;
            border-radius: 0px;
          }
        }
      }
    }
  }
}
